package com.thinkmore.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName(value = "auto_fill")
public class AutoFill implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "ctime", fill = FieldFill.INSERT)
    private LocalDateTime ctime;

    @TableField(value = "utime", fill = FieldFill.UPDATE)
    private LocalDateTime utime;

    private static final long serialVersionUID = 1L;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return ctime
     */
    public LocalDateTime getCtime() {
        return ctime;
    }

    /**
     * @param ctime
     */
    public void setCtime(LocalDateTime ctime) {
        this.ctime = ctime;
    }

    /**
     * @return utime
     */
    public LocalDateTime getUtime() {
        return utime;
    }

    /**
     * @param utime
     */
    public void setUtime(LocalDateTime utime) {
        this.utime = utime;
    }
}
